package edu.kjxy.day03.t7;

/**
 * 功能:
 * 作者:程序员欧阳子韩
 * 日期:2024/2/2 18:08
 */
public class MyThread2 extends Thread {
    private Task task;

    public MyThread2(Task task) {
        super();
        this.task = task;
    }

    @Override
    public void run() {
        super.run();
        task.doLongTimeTask();
    }
}
